@extends('layouts.console_header')

@section('title', '商家入驻')

@section('resources')
    @parent


@endsection

@section('content')
<section class="user_list">
	<p class="fz_14 account_title">
	    <span style="color: #7f7f7f;"><a href="/console/index">首页</a>>商家版运营></span>
	    <span class="co_violet">商家入驻</span>
    </p>
    <table id="example" class="display" cellspacing="0" width="100%">
        <thead>
            <tr>
                <th>序号</th>
                <th>名称</th>
                <th>手机号码</th>
                <th>性别</th>
                <th>城市</th>
                <th>创建时间</th>
                <th>操作</th>
            </tr>
        </thead>
        <tfoot>
            <tr>
                <th>序号</th>
                <th>名称</th>
                <th>手机号码</th>
                <th>性别</th>
                <th>城市</th>
                <th>创建时间</th>
                <th>操作</th>
            </tr>
        </tfoot>
        <tbody>
            @foreach($lists as $list)
                <tr>
                @if(!isset($i))
                    <td>{{$i=1}}</td>
                @else
                    <td>{{++$i}}</td>
                @endif
                    <td>{{$list['name']}}</td>
                    <td>{{$list['phone']}}</td>
                @if($list['sex'] == 'male')
                    <td>先生</td>
                @elseif($list['sex'] == 'female')
                    <td>女士</td>
                @else
                    <td></td>
                @endif
                    <td>{{$list['cityname']}}</td>
                    <td>{{date('Y-m-d H:i', strtotime($list['created_at']))}}</td>
                    <td>
                        <a style="margin-right: 10px;" class="co_violet" href="#">详情</a>
                    </td>
                </tr>
            @endforeach
        </tbody>
    </table>
</section>
@endsection

@section('scriptResources')
    @parent


@endsection